package com.bjpowernode.crm.workbench.service;

import com.bjpowernode.crm.workbench.domain.ClueRemark;
import com.bjpowernode.crm.workbench.mapper.ClueRemarkMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:ClueRemarkServiceImpl
 * Package:com.bjpowernode.crm.workbench.service
 * Date:2022/6/15 11:53
 * Description:
 * Author:zsm@zhangshuming.com
 */
@Service
public class ClueRemarkServiceImpl implements ClueRemarkService {
    @Autowired
    ClueRemarkMapper clueRemarkMapper;
    @Override
    public List<ClueRemark> queryClueRemarkList(String clueId) {
        return clueRemarkMapper.queryClueRemarkList(clueId);
    }

    @Override
    public void saveCreateClueRemarkBtn(ClueRemark clueRemark) {
        clueRemarkMapper.insertSelective(clueRemark);
    }

    @Override
    public void editClueRemark(ClueRemark clueRemark) {
        clueRemarkMapper.updateByPrimaryKeySelective(clueRemark);
    }

    @Override
    public void deleteClueRemark(String id) {
        clueRemarkMapper.deleteByPrimaryKey(id);
    }
}
